package cn.itcast.bbs.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Retention(RetentionPolicy.RUNTIME)
@Target( { ElementType.METHOD, ElementType.TYPE })
public @interface Permission {

	/**
	 * 资源
	 * 
	 * @return
	 */
	String resource() ;

	/**
	 * 操作
	 * 
	 * @return
	 */
	String action() ;
}
